package com.example.demo.model;

import lombok.Data;

@Data
public class PageRequest {
    private int offset;
    private int pageNum = 1;
    private int pageSize = 3;

    public int getOffset() {
        return (pageNum - 1) * pageSize;
    }
}
